package qlttn.web.bean;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Test {

	public static void main(String[] args) {
		 DateFormat dateFormat = new SimpleDateFormat("dd/mm/yyyy hh:mm:ss");
		   //get current date time with Date()
		   Date date = new Date();
		   System.out.println(dateFormat.format(date));
	 
		   //get current date time with Calendar()
//		   Calendar cal = Calendar.getInstance();
//		   System.out.println(dateFormat.format(cal.getTime()));
	}
}
